home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Controls GH ƒ / Slider Control GH / Slider.h < prev   
Text File  |  1994-02-26  |  2KB  |  43 lines

  1. /************************ Slider.h ********************/
  2. #pragma once
  3.  
  4. typedef struct ThumbInfo
  5. {
  6.     Rect    limitRect;
  7.     Rect    slopRect;
  8.     short    axis;
  9. }ThumbInfo;
  10. typedef struct Private
  11. {
  12.     Boolean        useColorQD;
  13.     Boolean        devicesAvailable;
  14.     short        oldValue;
  15.     Point        lastPoint;
  16.     Point        offsetPoint; // offset from entry point to top-left of thumb
  17.     Rect        lastRect; // used by autotrack
  18.     unsigned long    lastTime;
  19.     RGBColor    thumbColor;
  20. }Private, *PrivatePtr, **PrivateHandle; 
  21.  
  22. /************* prototypes *****************/
  23. void    CalcGrayRect(ControlHandle me, Rect *grayRect, Rect *whiteRect);
  24. long CalcRegion(ControlHandle me, RgnHandle theRegion, char calcThumb);
  25. short CalcRounding(Rect *ctlRect);
  26. long CalcStripRegion(ControlHandle me, RgnHandle theRegion);
  27. short CalcThumbLen(Rect *ctlRect);
  28. void CalcThumbRects(ControlHandle me, short value,    Rect *roundThumb);
  29. void CleanOldThumb(ControlHandle me, Rect *thumbRect);
  30. void CopyRect(Rect *src, Rect *dest);
  31. void DrawMe(ControlHandle me, short part);
  32. void DrawMyFrame(ControlHandle me, Rect *grayRect);
  33. void DrawMyIndicator(ControlHandle me, Rect *thumbRect);
  34. void InitMe(ControlHandle me);
  35. void MapPt2Value(ControlHandle me, Point *aPoint, short *value);
  36. void MapValue2Point(ControlHandle me, short value, Point *aPoint);
  37. void PositionMe(ControlHandle me, short deltaV, short deltaH);
  38. void ProvideDragInfo(ControlHandle me, ThumbInfo *param);
  39. Boolean TestForColor(void);
  40. long TestMe(ControlHandle me, short v, short h);
  41. Boolean UseColorQD(ControlHandle me, Rect *theRect);
  42. Boolean Using32Bit(void);
  43. void DragMe(ControlHandle me, short part);